<?php include APP_PATH . 'tpl/admin/header.php'; ?>
    <h1>日志分类：</h1>
    <table class="category">
        <tr>
            <td>ID</td>
            <td>名称</td>
            <td>操作</td>
        </tr>
        <?php foreach ($list as $key => $val): ?>
            <tr>
                <td><?php echo $val['id']; ?></td>
                <td><?php echo $val['name']; ?></td>
                <td><a href="admin.php?action=editCategory&id=<?php echo $val['id'] ?>">修改 /</a>
                    <a href="admin.php?action=deleteCategory&id=<?php echo $val['id'] ?>">删除</a>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
<?php include APP_PATH . 'tpl/admin/footer.php'; ?>